using System;
using System.Collections.Generic;
using System.Text;
using CDE_Model;

namespace XML_Indexing.PRIX
{
    internal class PruferSequence
    {
        private Array _numberSequence;
        private List<Element> _elementSequence;
        private Element _root;

        public Element RootElement
        {
            get { return _root; }
        }

        public List<Element> ElementSequence
        {
            get { return _elementSequence; }
        }

        public Array NumberSequence
        {
            get { return _numberSequence; }
        }

        public PruferSequence(Element startElement, Int64 startIndex)
        {
            if (startElement.Children != null || startElement.Children.Count == 0)
            {
                foreach (Element e in startElement.Children)
                {
                    //startIndex = new PruferSequence(e, startIndex)._numberSequence.GetValue(startIndex);
                }
            }

            _numberSequence = new Int64[1] { startIndex };
        }
    }
}
